package com.hzeport.bgs22emduty.enums;

public enum  DutyScheduleTypeEnum implements BaseEnum{
    TYPE_COMMON("1","工作日班"), TYPE_HOILDAY("2","节假日班科级"), TYPE_IMPORTANT("3","重要班科级")
    , TYPE_HOILDAY_DLEVEL("4","节假日班处级")
    , TYPE_IMPORTANT_DLEVEL("5","重要班处级") ;
    private String code;
    private String description;
    DutyScheduleTypeEnum(){};
    DutyScheduleTypeEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }
    @Override
    public String toString() {
        return this.getValue();
    }
    public String getValue() {
        return code;
    }

    @Override
    public BaseEnum getEnum(String value) {
        for(BaseEnum v : values())
            if(v.getValue().equalsIgnoreCase(value)) return v;
        throw new IllegalArgumentException();
    }
}
